import service from "../utils/request.js";

export const getAllAnimals = () => {
    return service({
        method: 'get',
        url: '/animals',
    });
};

export const getAnimalById = (id) => {
    return service({
        method: 'get',
        url: `/animals/${id}`,
    });
};

export const praiseAnimal = (id) => {
    return service({
        method: 'post',
        url: `/animals/${id}/praise`,
    });
};